let timeout = null;
export function preSha(func,index,time){
  return function () {
    if (timeout) clearTimeout(timeout);
    timeout = setTimeout(() => {
      func(index)
    },time);
  };
}
